home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
mint
/
lib
/
mntlib44.zoo
/
mntlib
/
fputs.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-03-01
|
322 b
|
23 lines
/* from Dale Schumacher's dLibs */
#include <stdio.h>
#include <stddef.h>
#include <assert.h>
int
fputs(data, fp)
register const char *data;
register FILE *fp;
{
register int n = 0;
assert((data != NULL));
while (*data)
{
if (fputc(*data++, fp) == EOF)
return (EOF);
++n;
}
return (n);
}